<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico-ie7.css">
	<![endif]-->
	<script type='text/javascript' src='http://localhost/obj/movier/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/js/extend.js'></script>
	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/User/js/js.js'></script>

	<title>用户列表</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="<?php echo U('index');?>" class="act"><i class="icon-user mr3 gray"></i>用户管理</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tsblack tc">Uid</th>
				<th class="pct30 tsblack">注册邮箱</th>
				<th class="pcd15 tsblack">昵称</th>
				<th class="pct20 tsblack">级别</th>
				<th class="pct30 tsblack tc">操作</th>
			</tr>
			<?php $hd["list"]["u"]["total"]=0;if(isset($user) && !empty($user)):$_id_u=0;$_index_u=0;$lastu=min(1000,count($user));
$hd["list"]["u"]["first"]=true;
$hd["list"]["u"]["last"]=false;
$_total_u=ceil($lastu/1);$hd["list"]["u"]["total"]=$_total_u;
$_data_u = array_slice($user,0,$lastu);
if(count($_data_u)==0):echo "";
else:
foreach($_data_u as $key=>$u):
if(($_id_u)%1==0):$_id_u++;else:$_id_u++;continue;endif;
$hd["list"]["u"]["index"]=++$_index_u;
if($_index_u>=$_total_u):$hd["list"]["u"]["last"]=true;endif;?>

				<tr>
					<td class='tc'><span class="b gray2"><?php echo $u['uid'];?></span></td>
					<td class='tl'><?php echo $u['email'];?></td>
					<td class='tl'><?php echo $u['nickname'];?></td>
					<td class='tc'>
						<?php echo getAdminLevel($u['level']);?>
					</td>
					<td class='tc'>
						<a href="<?php echo U('edit?uid=');?><?php echo $u['uid'];?>" class="a bgwhite green bdd p5 mr5"><i class="icon-edit icon-border mr3 icon-large"></i>修改</a>
						<?php if($_SESSION['user']['level'] == 9){?>
							<a href="<?php echo U('del?uid=');?><?php echo $u['uid'];?>" onclick='return del();' class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删除</a>
						<?php }?>
					</td>
				</tr>
			<?php $hd["list"]["u"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</table>
	</div>
</body>
</html>